<layout name="layout" />
<script type="text/javascript">
    //全局变量
    var GV = {
        DIMAUB: "{:G::$Cache['siteurl']}",
        FILE: "/index.php",
        REAL_FILE: "{:G::$Cache['siteurl']}/admin.php",
        TPL_COMMON: "__COMMON__",
        JS_ROOT: "__COMMON__/js/",
        TOKEN: ""
    };
</script>
<script src="__COMMON__/js/wind.js"></script>
<div class="user_main">
    <ul class="user_main_nav">
        <li ><a href="{:U('User/Catad/fabu')}" class="hover" >新 发 布/li>
                <li  <if condition="$_REQUEST['type'] == 'fabu'">class="hover"</if>><if condition="$_REQUEST['type'] == 'fabu'">已 发 布<else/><a href="{:U('User/Catad/adlist', array('type'=>'fabu'))}">已 发 布</a></if></li>
        <li <if condition="$_REQUEST['type'] == 'outoftime'">class="hover"</if>><if condition="$_REQUEST['type'] == 'outoftime'">已 过 期<else/><a href="{:U('User/Catad/adlist', array('type'=>'outoftime'))}">已 过 期</a></if></li>
    </ul>
    <div class="user_main_title">发布分类广告信息</div>
    <div class="user_form_information martop10">
        <form action="__SELF__" name="art_add" method="post" enctype="multipart/form-data">
            <div class="li">广告标题：<input type="text" class="txt t435" name="title"  onclick="value='';focus()" value="发布后标题不显示，仅作搜索关键字" ></div>
            <div class="li">广告分类：
                <select class="t125" name="cat_parentid" id="cat_parentid" onchange="catChild()">
                    <volist name="cat" id="ct">
                        <option value="{$ct.cat_id}">{$ct.name}</option>
                    </volist>
                </select>
                &nbsp;
                <select class="t125" name="cat_id" id="cat_id">
                    <option value="0">请选择</option>
                </select>
            </div>
            <div class="li">&nbsp;&nbsp;地&nbsp;  区：
                <select class="t125" name="area_id">
                    <volist name="area" id="ar">
                        <option value="{$ar.area_id}">{$ar.name}</option>
                    </volist>
                </select>
                &nbsp;
            </div>
            <div class="li">信息主图：<input name="main_img_url" type="file" class="t260"></div>
            <div class="textcenter"><img src="__PUBLIC_HOME__/images/ad8.jpg"/></div>
            <div class="li">
                <table>
                    <tr>
                        <td width="80" height="40">
                            <input type="checkbox" name="link_status" value="1"  onclick="javascritp:linkScore()">
                            链接地址:</td>
                        <td>
                            <input type="text" class="txt t260" name="link" >
                            <span>(选择支付 20金币/24小时)</span>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input type="text" class="txt t43" value="7" name="link_days" onchange="javascritp:linkScore()">
                            * 24小时
                            <i class="CF00">(需要支付<b id="tip_link">0</b>金币)</i>
                        </td>
                    </tr>
                </table>
            </div>

            <div class="li">
                <table>
                    <tr>
                        <td width="80" height="40">
                            <input name="page_status" type="checkbox" value="1"  onclick="javascritp:pageScore()">次级页面</td>
                        <td>
                            <a href="{:U('User/Article/add')}" target="_blank"  onclick="getArticleID();" id="editConPage">(点击编辑次级页界面)</a>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input name="page_id" type="hidden" class="txt t43" value="" >
                            <input name="page_days" type="text" class="txt t43" value="7"  onchange="javascritp:pageScore()" >
                            * 24小时
                            <i class="CF00">(需要支付<b id="tip_page">0</b>金币)</i>
                        </td>
                    </tr>
                </table>

                <table class="martop10">
                    <tr>
                        <td width="70" height="40">发布时间：</td>
                        <td>
                            <input name="days_status" type="radio" value="0" onclick="javascritp:dayScore()" >
                            24小时
                            <i class="CF00">(免费)</i>
                            &nbsp;
                            <input name="days_status" type="radio" value="1" onclick="javascritp:dayScore()">
                            <input name="days" type="text" class="txt t43" value="7" onchange="javascritp:dayScore()">
                            * 24小时
                            <i class="CF00">(需要支付<b id="tip_day_pay">0</b>金币)</i>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="li"><strong>总计花费：
                    <i class="CF00"><b id="tip_total">0</b>金币</i></strong> </div>
            <div class="clear"></div>
            <div class="li but martop10"><input type="submit" class="s" value=" "></div>
        </form>
    </div>
</div>
<script type="text/javascript">
    $(function(){dayScore();pageScore();linkScore();countScoreSum();catChild()});
</script>
<!---->
</div>